﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudyDemo.Attributes
{
    /// <summary>
    /// 非空验证
    /// </summary>
    public class RequiredAttribute : CommonValidateAttribute
    {
        public override bool IsValidate(object value)
        {
            return value != null && value.ToString().Trim().Length > 0;
        }
    }
}
